//--------------------------------------------
//
// copyright@2008,all right reserved by ax.
//
//
//     PROJECT   :   futrue
//
//     FILE      :   IServer.h
//
//     PURPOSE   :   futrue project main file
//   
//     DATE      :   2008/10/01
//
//     AUTHOR    :   ax
//
//--------------------------------------------
#ifndef __FUTRUE_I_SERVER_H__
#define __FUTRUE_I_SERVER_H__
class IView;
class IServer
{
public:
	virtual int  Init() = 0;
	virtual void UnInit() = 0;
	virtual int  AddView(IView* ) = 0;
	virtual int  DelView(IView* ) = 0;

	virtual int  DelView(int nKey) = 0;

	virtual IView* Find(int nKey)  = 0;


	//trigger server event
	//void TriggerServerEvent() = 0;

	virtual void  OnViewEvent() = 0;
};
#endif